package com.qingzhuge.verification.manager.controoller;

import com.qingzhuge.common.annotation.ASysLog;
import com.qingzhuge.common.enums.EResourceType;
import com.qingzhuge.controller.BasePkLongController;
import com.qingzhuge.core.annotation.AResource;
import com.qingzhuge.dto.response.ResponseBodyDto;
import com.qingzhuge.utils.PageUtil;
import com.qingzhuge.verification.dto.request.SysVerificationRequestDto;
import com.qingzhuge.verification.dto.response.SysVerificationResponseDto;
import com.qingzhuge.verification.entity.SysVerification;
import com.qingzhuge.verification.service.ISysVerificationService;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zero.xiao
 * @description : 实人认证
 * @date :2018/6/8 0008 下午 14:49
 * @modified :
 */
@ASysLog(value = "实人认证")
@AResource(name = "实人认证", type = EResourceType.menu, catalog = "认证管理")
@Api(tags = "S实人认证")
@RestController
@RequestMapping("api/sys/auth/verification")
public class SysVerificationController extends BasePkLongController<SysVerification, ISysVerificationService, SysVerificationRequestDto, SysVerificationResponseDto> {

    @Override
    public ResponseEntity<ResponseBodyDto<PageUtil<SysVerificationResponseDto>>> queryPage(@RequestBody(required = false) SysVerificationRequestDto param) {
        return super.queryPage(param);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysVerificationResponseDto>> get(@PathVariable Long id) {
        return super.get(id);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysVerificationResponseDto>> save(@RequestBody SysVerificationRequestDto verification) {
        return super.update(verification);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysVerificationResponseDto>> update(@RequestBody SysVerificationRequestDto verification) {
        return super.update(verification);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<Object>> delete(@PathVariable Long id) {
        return super.delete(id);
    }
}
